<?php
/* @var $this UserController */
/* @var $model Register2 */
/* @var $form CActiveForm  */

$this->pageTitle = Yii::app()->name . ' - Đăng ký';
$this->breadcrumbs = array(
    'Đăng ký',
);
?>

<!-- register -->
<div id="register">
    <div class="content">
        <div class="reg_title"><h1>Hoàn thành đăng ký</h1></div>
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'register2-form',
            'enableClientValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
            'htmlOptions' => array(
                'enctype' => 'multipart/form-data',
            ),
        ));
        ?>
        <div class="reg_half">
            <label>Tên đăng nhập</label>
            <?php echo $form->textField($model, 'username', array('class' => 'input_text dlb')); ?>
            <?php echo $form->error($model, 'username'); ?>
            <label>Giới tính</label>
            <?php echo $form->radioButton($model, 'gender', array('value' => 1)) . ' Nam'; ?>
            <?php echo $form->radioButton($model, 'gender', array('value' => 0, 'style' => 'margin-left: 15px')) . ' Nữ'; ?>
            <?php echo $form->radioButton($model, 'gender', array('value' => 2, 'style' => 'margin-left: 15px')) . ' Không xác định'; ?>
        </div>
        <div class="reg_half_end">
            <h2>Ảnh đại diện</h2>
            <?php echo $form->fileField($model, 'avatar', array('class' => 'input_file')); ?>
        </div>
        <div class="clr"></div>
        <?php echo CHtml::submitButton('Tiếp tục', array('class' => 'gr_btn_big mt10')); ?>      
        <div class="reg_step">
            <span class="active"></span>
            <span></span>
            <span></span>
            <span></span>
        </div>
        <?php $this->endWidget(); ?>
    </div>
</div>
<!-- /register -->
